normal gg
let n=search("goto ERROR", 'W')
silent exe '0,'. n .'d'

let str= "goto CLEAN_NOVANTO\n"
silent put = str

normal gg
let n=search('pause', 'W')
normal dd

wq

